// 平台属性管理模块的请求文件
import request from '@/utils/request'

const prefix = '/list-api'

// 获取SKU列表的接口  GET /admin/product/list/{page}/{limit}
export const reqSkuList = (page, limit) => request({ url: prefix + `/admin/product/list/${page}/${limit}`, method: 'get' })

// 上架  GET /admin/product/onSale/{skuId}
export const reqOnSale = (skuId) => request({ url: prefix + `/admin/product/onSale/${skuId}`, method: 'get' })

// 下架  GET /admin/product/cancelSale/{skuId}
export const reqCancelSale = (skuId) => request({ url: prefix + `/admin/product/onSale/${skuId}`, method: 'get' })

// 获取SKU详情的接口  GET /admin/product/getSkuById/{skuId}
export const reqSkuById = (skuId) => request({ url: prefix + `/admin/product/getSkuById/${skuId}`, method: 'get' })
